package com.catchu.principle.关系0;

/**
 * @author 刘俊重
 * @Description 依赖  Book类作为People类的形式参数，
 * @date 9:59
 */
public class People {

    //Book类作为People类的形式参数，属于依赖
    public void read(com.catchu.principle.关系0.Book book){
        System.out.print("读的书是"+book.getName());
    }

    public static void main(String args[]){
        com.catchu.principle.关系0.Book b = new com.catchu.principle.关系0.Book();
        b.setName("平凡的世界");

        People p = new People();
        p.read(b);
    }
}
